emit QScreen::geometryChanged when the logical DPI changes
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 23 Nov 2020 18:16:00 +0000 (18:16 +0000)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Mon, 23 Nov 2020 18:16:00 +0000 (18:16 +0000)
commit9163b1ec2a35a19b556f4cc24d6326eb6cb6c5af
tree3c40c7537b79442c9dd334a4fc721fd7651bdc39
parente318de6769646c73004cbaf948864e9176b47fc3
emit QScreen::geometryChanged when the logical DPI changes

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5c7307775d32ae0a
Last-Update: 2020-09-30

Add the missing call to QScreenPrivate::emitGeometryChangeSignals()
along with an emission of physicalDotsPerInchChanged()
since that is calculated from geometry and physical size.

Rearrange the code in
QGuiApplicationPrivate::processScreenGeometryChange()
to prevent duplicate emissions of geometryChanged(),
physicalDotsPerInchChanged() which this change would introduce.

Gbp-Pq: Name emit_geometry_changed.diff
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qscreen.cpp